package io;

import java.io.*;
import java.nio.file.Path;

/**
 * @Author Klys
 * @Date 2022/6/27
 * @Description
 * @Version 1.0
 */
public class FileDemo {

    public static void main(String[] args) throws IOException {

        File pathName = new File("D:\\Typora学习笔记\\Java面试笔记\\java面试笔记练习代码\\Interview\\src\\main\\java\\io\\myfile.txt");
        FileOutputStream outputStream = new FileOutputStream(pathName);
        outputStream.flush();
        outputStream.write('a');
        outputStream.close();


    }
}
